<include file="Member:header"/>
<div id="content">
    <div class="crumbs_nav mb">
        <span class="icon">当前位置：</span>
        <a href="/">首页</a>
        &gt; 会员注册
    </div>
    <!--end crumbs_nav-->
    <div class="reg_box">
        <div class="rtitle">
            <h3 class="tith">会员注册</h3>
            <div class="tips2">
                以下均为必填项，如注册遇到问题请拨打0532-80660520
            </div>
        </div>
        <!--end rtitle-->
        <div class="regcont clearfix">
            <form class="reg_form fl" action="{:U('Member/reg')}" id="reg_box" onsubmit="return goReg();" method="post">
                <ul class="reg_ul">
                    <li>
                        <label>
                            会&nbsp;员&nbsp;名：
                        </label>
                        <input type="text" class="login-input" name="username" /><span class="sm" id="msg_username">5-20个字符，只能为字母、数字、下划线。</span>
                    </li>
                    <li>
                        <label>
                            密&nbsp;&nbsp;&nbsp;&nbsp;码：
                        </label>
                        <input type="password" class="login-input" name="password" /><span class="sm" id="msg_password">6-20个字符，请使用字母、数字或其组合。</span>
                    </li>
                    <li>
                        <label>
                            确认密码：
                        </label>
                        <input type="password" class="login-input" name="repassword" /><span class="sm" id="msg_repassword">请重复输入密码。</span>
                    </li>
                    <li>
                        <label>
                            电子邮箱：
                        </label>
                        <input type="text" class="login-input" name="email" id="msg_email"/><span class="sm">请输入有效的邮件地址。</span>
                    </li>
                    <li>
                        <label>
                            验&nbsp;证&nbsp;码：
                        </label>
                        <input type="text" class="login-input2" name="verify" /><img id="reg_verifyImg" src="{:U('Member/verify?time=1')}" onClick="fleshVerify(1,'reg_verifyImg')" border="0" alt="点击刷新验证码" style="cursor:pointer" class="vm ml" align="absmiddle"/><a href="#nogo" class="orange" onClick="fleshVerify(1,'reg_verifyImg')">看不清换一个</a>
                    </li>
                </ul>
                <div class="reg_btn">
                	<div id="login_msg" style="text-align:left;color:#FF6600;margin:3px; font-weight:bolder"></div>
                    <input type="submit" class="sub" name="loginsubmit" value="登 录" /><input type="checkbox" name="checkbox" value="checkbox" checked="checked" />我已阅读并同意安妮的礼物<a class="orange" href="#">用户协议</a>
                </div>
                <!--end reg_btn-->
            </form>
            <!--end reg_form-->
            <div class="fr_dl fl">
                <p class="ts">
                    已经是会员，请登录！
                </p>
                <p>
                    我已经有安妮的礼物会员账号，<a href="{:U('Member/login')}" class="orange">马上登录</a>
                </p>
            </div>
            <!--end fr_dl-->
        </div>
    </div>
    <!--end reg_box-->
</div>
<script>
            function goReg(){
            	postForm('reg_box',function(jdata){
					$('#login_msg').html(jdata.info);
            		if(jdata.status == 1){
            			$('#reg_msg').html(jdata.info);
            			if($.cookie('jurl')){
            				window.location.href = $.cookie('jurl');
            			}else{
            				window.location.href = '{:U('Member/index')}';
            			}
            		}
            	});
            	return false;
            }
            function fleshVerify(type,id){ 
            	//重载验证码
            	var timenow = new Date().getTime();
            	if (type){
            		$('#'+id).attr("src", '{:U('Member/verify?timenow=1')}'+timenow);
            	}else{
            		$('#'+id).attr("src", '{:U('Member/verify?timenow=2')}'+timenow);
            	}
            }
</script>
<include file="Layout:footer"/>